$(function () {
	//模拟option下拉菜单
	var OptionButton = $(".drop-down .option-box .option");
	var triangle = $(".drop-down .option-box .option .triangle");
	var everyOption = $(".drop-down .option-box .option .every-options");
	OptionButton.click(function() {
		event.stopPropagation();
		var $currentOption = $(this).children('.every-options');
		var $currentTriangle = $(this).children('.triangle');
		everyOption.not($currentOption).slideUp(200);
		triangle.not($currentTriangle).removeClass('rotate');
		$currentTriangle.toggleClass("rotate");
		$currentOption.toggle(200);
	})
	$(document).click(function() {
		triangle.removeClass("rotate");
		everyOption.hide(100);
	})
	
	//下拉菜单的值交换
	var everyOne = $(".every-options ul li");
	everyOne.click(function() {
		var html = $(this).html();
		var change = $(this).parent().parent().siblings(".change");
		change.html(html);
	})
})
